﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Default3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        cphImages.Controls.Add(new LiteralControl(clsDB.GetLargeImages()));

        string SiteName = System.Configuration.ConfigurationManager.AppSettings["SiteName"].ToString();
        string SiteDesc = System.Configuration.ConfigurationManager.AppSettings["SiteDesc"].ToString();
        string strURL = HttpContext.Current.Request.Url.AbsoluteUri;
        Page.Title = SiteName;

        cphHead.Controls.Add(new LiteralControl("<meta name='description' content='" + SiteDesc + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='keywords' content='" + SiteName + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='og:title' content='" + SiteName + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='og:description' content='" + SiteDesc + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='og:url' content='" + strURL + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='og:type' content='article' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='twitter:title' content='" + SiteName + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='twitter:description' content='" + SiteDesc + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='twitter:url' content='" + strURL + "' />"));
        cphHead.Controls.Add(new LiteralControl("<meta name='twitter:card' content='summary' />"));

    }
}